package com.example.mapstructexample.mapper;

import com.example.mapstructexample.bean.Teacher;
import com.example.mapstructexample.vo.TeacherVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface TeacherMapper {
    //映射器工厂
    TeacherMapper INSTANCE = Mappers.getMapper(TeacherMapper.class);


    TeacherVo toTeacherVo(Teacher teacher);
}
